package com.ny.zmb.openapi.ysutil.common;

public enum SubCodeEnum {
    COM000("COM000", "业务受理成功"),
    COM001("COM001", "商户未开通此权限，具体看subMsg提示"),
    COM002("COM002", "业务参数校验错误，具体看subMsg提示"),
    COM003("COM003", "业务失败，具体看subMsg提示"),
    MER001("MER001", "审核中"),
    ;

    private final String code; // 字段不应为 static
    private final String msg;

    // 构造函数
    private SubCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public String getCode() {
        return code;
    }

    @Override
    public String toString() {
        return code + ": " + msg; // 可选，方便调试和输出
    }
}
